{% load navigate %}  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>
    <head>
        <meta name="verify-v1" content="puJnudYho5vB4Nt39yFuORmyPbCwp4DlQSwZy5YMO0w=" />
        {% block meta %}{% endblock %}<title>{% block title %}{% endblock %} - OnlyPython</title>
        <link rel="alternate" type="application/rss+xml" title="OnlyPython最新文章" href="/feeds/latest/" />
        <link rel="shortcut icon" href="/static/images/favicon.ico" type="image/x-icon" />
        <link type="text/css" href="/static/css/styles.css" rel="stylesheet">
        {% block css %}{% endblock %}
        {% block js %}{% endblock %}
    </head>
    <body class="yui-skin-sam">
        <div class="banner">
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td>
                        <a href="/"><img src="/static/images/logo.gif" style="border: solid 0px;"/></a>
                    </td>
                    <td align="right" valign="bottom" style="padding: 5px;">
                        <!-- SiteSearch Google -->
                        <form method=get action="http://www.google.com/search">
                            <table>
                                <tr>
                                    <td>
                                        <input type=text name=q size=20 maxlength=255 value="">
                                        <input type=hidden name=ie value=utf-8>
                                        <input type=hidden name=oe value=utf-8>
                                        <input type=hidden name=hl value=zh-CN>
                                        <input type=submit name=btnG value="Google">
                                        <font size=-1>
                                            <input type=hidden name=domains value="onlypython.com">
                                            <br>
                                            <input type=hidden name=sitesearch value="onlypython.com">
                                        </font>
                                    </td>
                                </tr>
                            </table>
                        </form>
                        <!-- SiteSearch Google -->{% navigator %}
                    </td>
                </tr>
            </table>
        </div>
        <div id="content">
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td style="padding-left:20px; padding-right: 20px;" valign="top">
                        {% block content %}{% endblock %}
                    </td>
                    <td valign="top" align="center" class="rightbar">
                        <div style="padding-top: 30px;">
                            <a href="http://www.onlypython.com/feeds/latest/"><img border="0" src="http://img.feedsky.com/images/icon_sub_c1s17_d.gif" alt="feedsky" vspace="2" style="margin-bottom:3px"></a>
                            <br/>
                            <a href="http://www.zhuaxia.com/add_channel.php?url=http://www.onlypython.com/feeds/latest/"><img border="0" src="http://img.feedsky.com/images/icon_subshot01_zhuaxia.gif" alt="&#25235;&#34430;" vspace="2" style="margin-bottom:3px"></a>
                            <br/>
                            <a href="http://www.pageflakes.com/subscribe.aspx?url=http://www.onlypython.com/feeds/latest/"><img border="0" src="http://img.feedsky.com/images/icon_subshot01_pageflakes.gif" alt="pageflakes" vspace="2" style="margin-bottom:3px"></a>
                            <br/>
                            <a href="http://fusion.google.com/add?feedurl=http://www.onlypython.com/feeds/latest/"><img border="0" src="http://img.feedsky.com/images/icon_subshot01_google.gif" alt="google reader" vspace="2" style="margin-bottom:3px"></a>
                            <br/>
                            <a href="http://www.bloglines.com/sub/http://www.onlypython.com/feeds/latest/"><img border="0" src="http://img.feedsky.com/images/icon_subshot01_bloglines.gif" alt="bloglines" vspace="2" style="margin-bottom:3px"></a>
                            <br/>
                            <a href="http://www.xianguo.com/subscribe.php?url=http://www.onlypython.com/feeds/latest/"><img border="0" src="http://img.feedsky.com/images/icon_subshot01_xianguo.gif" alt="&#40092;&#26524;" vspace="2" style="margin-bottom:3px"></a>
                            <br/>
                            <a href="http://inezha.com/add?url=http://www.onlypython.com/feeds/latest/"><img border="0" src="http://img.feedsky.com/images/icon_subshot01_nazha.gif" alt="&#21738;&#21522;" vspace="2" style="margin-bottom:3px"></a>
                            <br/>
                            <a href="http://reader.yodao.com/#url=http://www.onlypython.com/feeds/latest/"><img border="0" src="http://img.feedsky.com/images/icon_subshot01_youdao.gif" alt="&#26377;&#36947;" vspace="2" style="margin-bottom:3px"></a>
                            <br/>
                        </div>
                        <div style="line-height: 0.4; padding: 0px 30px 10 30px;">
                            <p style="border-bottom: 1px dotted; padding: 10px;">
                                <b>目录</b>
                            </p>
                            {% for category in request.categories %}
                            <p style="font-size: 14px; text-align:left;">
                                <a href="/category/{{ category.key.id }}/">{{ category.name }}({{ category.post_count }})</a>
                            </p>
                            {% endfor %} 
                        </div>
                        <div style="padding: 0px 30px;">
                            <p style="border-bottom: 1px dotted; padding: 10px;">
                                <b>阅读最多得文章</b>
                            </p>
                            {% for post in request.most_read_posts %}
                                {% ifnotequal post.key.id 436 %}
                                <p style="font-size: 14px; text-align:left;">
                                    <a href="/post/{{post.key.id}}">{{ post.title }} ({{ post.read_count }})</a>
                                </p>
                                {% endifnotequal %}
                            {% endfor %} 
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="footer">
            <table border="0" cellspacing="10" cellpadding="0" width="100%">
                <tr>
                    <td align="right" width="90">
                        <a href="http://creativecommons.org/licenses/by/2.5/cn/" rel="license"><img style="border: 0px;" height="31" alt="Creative Commons License" src="http://i.creativecommons.org/l/by/2.5/cn/88x31.png" width="88" /></a>
                    </td>
                    <td style="font-size:12px;" align="left" width="230">
                        除非另有声明，本网站采用<a href="http://creativecommons.org/licenses/by/2.5/cn/" rel="license">知识共享“署名 2.5 中国大陆”许可协议</a>授权。
                    </td>
                    <td align="center">
                        <a href="/about/">关于我们</a>
                        | <a href="/post/436/">联系我们</a>
                    </td>
                    <td align="right" width="120">
                        <img src="http://code.google.com/appengine/images/appengine-noborder-120x30.gif" alt="Powered by Google App Engine"/>
                    </td>
                    <td width="125" style="padding-bottom: 3px;">
                        <a href="http://www.djangoproject.com/"><img src="http://media.djangoproject.com/img/badges/djangomade124x25_grey.gif" border="0" alt="Made with Django." title="Made with Django."/></a>
                    </td>
                </tr>
            </table>
        </div><script type="text/javascript">
            var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
            document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
        </script>
        <script type="text/javascript">
            var pageTracker = _gat._getTracker("UA-4751909-2");
            pageTracker._initData();
            pageTracker._trackPageview();
        </script>
    </body>
</html>
